﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace FileCache
{
    public class Test
    {
        static void Main()
        {
            //Cache.Add("aghadsf", "dfkasdfkasdjfklasjdfkljasdklfjalsfdasf");
            TestEntity c = new TestEntity();
            c.Name = "笨笨熊";
            c.Pwd = "123";
            Cache.Add<TestEntity>("haha222", c);
            var tt = Cache.Get<TestEntity>("haha222");
            //var cc = Cache.Get("haha1");
            Thread.Sleep(500000000);
        }
    }

    public class TestEntity
    {
        public string Name
        {
            get;
            set;
        }

        public string Pwd
        {
            get;
            set;
        }
    }
}
